home *** CD-ROM | disk | FTP | other *** search
/ Network CD 1 / Network CD.iso / tbag / 1-10 / tb4 / doc-files / cli-doc / setcli.doc < prev    next >
Text File  |  1986-09-10  |  2KB  |  51 lines

  1. ***SetCLI***
  2.  
  3. Erv Thompson -  Jan 1, 1987
  4.  
  5. This utility simplifies the customization of the CLI window. It's main
  6. purpose is to create a new window for the CLI called from the Workbench. It
  7. also allows you to add a CLI command or other program file to be executed
  8. automatically when the CLI window is opened.  
  9.  
  10. The program looks for the CLI file in the current directory.  If it can't
  11. find it it will end with a warning.  
  12.  
  13. The window size description must be of the correct form. Also, be sure and
  14. include the final slash (/) after the depth parameter. If you should make
  15. an error in this regard the customized CLI will not open. Just rerun SetCLI
  16. and correct the problem.  
  17.  
  18. The command name length is limited to 4 characters. If you should want to
  19. auto-run a program with a longer name length then you'll need to rename the
  20. program with 4 characters or less. One of the benefits of this feature is
  21. that it will enable you to run programs from the Workbench that would not
  22. otherwise execute.  
  23.  
  24. The following will show you how to implement this feature:
  25.  
  26. 1. Run SetCLI on a CLI file. Use a full size (0/0/640/200/) window. The
  27.    title can be anything you wish.
  28. 2. Use a new 4 character name for your command parameter.
  29. 3. Rename the program you want to run with the new four character name.
  30. 4. Make a copy of the CLI and CLI.info file renamed to the program name.
  31.    This name doesn't need to be the same as the 4 character name. Use 
  32.    one that suits you.
  33. 5. If you wish, use the Icon Editor to create a new Icon image for your
  34.    executable file.
  35.  
  36. One way to utilize the command parameter is to use the Execute command.
  37. Rename Execute with a two letter name and then use a single letter name
  38. for a batch file that contains the commands/files you wish to execute.
  39. You could then enter something like "Ex 1" at the command prompt and the
  40. file "1" would be executed when your new CLI window opens.
  41.  
  42. Be sure and have a backup of the original CLI file. This program rewrites
  43. an ASCII portion of the CLI file. If an error occurs it may "damage" the
  44. file and make it unusable.
  45.  
  46. NOTE to Modula-2 programmers: The wbstart.def and wbstart.mod files must be
  47. compiled into the .sym and .lnk files. Many thanks to Richie Bielak for
  48. these much needed modules. These should be standard inclusions in your
  49. M2: directory. They are required to run a program from Workbench. See notes
  50. in the files for their use.
  51.